﻿Imports System.ComponentModel

<Serializable()> _
Public Class ItemControle


    <Category("Dados do Controle"), _
    DefaultValue(GetType(String), ""), _
    DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _
    Public Property ControleBaseBusca() As Boolean
        Get
            Return bolControleBaseBusca
        End Get
        Set(ByVal Value As Boolean)
            bolControleBaseBusca = Value
        End Set
    End Property

    <Category("Dados do Controle"), _
    DefaultValue(GetType(String), ""), _
    DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _
    Public Property Chave() As String
        Get
            Return strChave
        End Get
        Set(ByVal Value As String)
            strChave = Value
        End Set
    End Property

    <Category("Dados do Controle"), _
    DefaultValue(GetType(String), ""), _
    DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _
    Public Property Nome() As String
        Get
            Return strNome
        End Get
        Set(ByVal Value As String)
            strNome = Value
        End Set
    End Property

    <Category("Dados do Controle"), _
    DefaultValue(GetType(String), ""), _
    DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _
    Public Property NomeColunaResultado() As String
        Get
            Return strNomeColunaResultado
        End Get
        Set(ByVal Value As String)
            strNomeColunaResultado = Value
        End Set
    End Property

    <Category("Dados do Controle"), _
    DefaultValue(GetType(String), ""), _
    DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)> _
    Public Property Formato() As String
        Get
            Return strFormato
        End Get
        Set(ByVal Value As String)
            strFormato = Value
        End Set
    End Property

    <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
    Public Property Valor() As Object
        Get
            Return strValor
        End Get
        Set(ByVal Value As Object)
            strValor = Value
        End Set
    End Property

    <DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)> _
    Public Property ClientId() As String
        Get
            Return strClientId
        End Get
        Set(ByVal Value As String)
            strClientId = Value
        End Set
    End Property

    Private strChave As String
    Private strNome As String
    Private strNomeColunaResultado As String
    Private strFormato As String
    Private strValor As Object
    Private strClientId As String
    Private bolControleBaseBusca As Boolean

    Public Sub New()
        strChave = ""
        strNome = ""
        strValor = ""
        strClientId = ""
        strFormato = ""
        strNomeColunaResultado = ""
    End Sub


End Class
